//导入requset工具
import request from '@/utils/request'
//查询请假
export const leavePageService = (params) => {
  return request.get('/admin/leave/page', { params: params })
}

export const addLeaveService = data => request.post('/leave', data)
export const updateLeaveStatusService = (params) => {
  return request.put('/admin/leave/status', params)
}